package thread.lock;

/**
 * @program: Multhread
 * @description:
 * @author: zhanghz001
 * @create: 2021-03-04 21:26
 **/
public class ParentLock {
    final byte[] lock = new byte[0];
    
    public void f1() {
        synchronized (lock) {
            System.out.println("f1 from parent");
        }
    }
}
